package com.amose.springcloudoauth2server.authentication.service;

import com.amose.springcloudoauth2server.authentication.entity.Permission;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author amose
 * @since 2021-07-01
 */
public interface IPermissionService extends IService<Permission> {


    /**
     * 查询权限列表
     * @param userId 用户id
     * @return 用户权限
     */
    List<Permission> queryPermissionListByUserId(Integer userId);
}
